import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
    redirect:'/zhengone'
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },{
    path: '/zhengone',
    name: 'zhengone',
    component: () => import( '../views/zheng/ZhengOne.vue'),
    redirect:'/zhengtwo',
    children:[
      {
    path: '/zhengtwo',
    name: 'zhengtwo',
    component: () => import( '../views/zheng/ZhengTwo.vue')
  },{
    path: '/zhengthree',
    name: 'zhengthree',
    component: () => import( '../views/zheng/ZhengThree.vue')
  },{
    path: '/zhengfour',
    name: 'zhengfour',
    component: () => import( '../views/zheng/ZhengFour.vue')
  },{
    path: '/zhengwu',
    name: 'zhengwu',
    component: () => import( '../views/zheng/ZhengWu.vue')
  },{
    path: '/zhengliu',
    name: 'zhengliu',
    component: () => import( '../views/zheng/ZhengLiu.vue')
  }
    ]
  },
  
]

const router = new VueRouter({
  routes
})

export default router
